<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/axios-0.18.0.js"></script>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="app">
    页码：<input type="text" v-model="pageCurrent"><br>
    页数：<input type="text" v-model="pageSize"><br>
    username：<input type="text" v-model="pageUser.username"><br>
    gender：<input type="text" v-model="pageUser.password"><br>
    email：<input type="text" v-model="pageUser.email"><br>
    <button @click="find">发送</button>
    <ul>
        <li v-for="user in users" >
           {{user.username}}--{{user.gender}}--{{user.email}}
        </li>
    </ul>
</div>
<script>
    var vue=new Vue({
        el:"#app",
        data:{
            users:[],
            pageCurrent: 1,
            pageSize:5,
            pageUser:{
                "username":"",
                "password":"",
                "email":""
            }
        },
        created(){
            this.find();
        },
        methods:{
            find(){
                axios.post("/users/"+this.pageCurrent+"/"+this.pageSize,this.pageUser).then(res=>{
                    this.users=res.data;
                })
            }
        }

    });
</script>
</body>
</html>